package com.aaa.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: qy158-system
 * @description:
 * @author: 闫克起2
 * @create: 2022-10-15 09:22
 * 封装了一个Excel记录的类
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ExcelDemo {

    @ExcelProperty(value = "姓名")//标记excel标题内容
    private String name;

    @ExcelProperty(value = "年龄")
    private Integer age;

    @ExcelProperty(value = "性别")
    private String sex;

    @ExcelIgnore  //标记该属性不写入到excel表格中
    private String address;
}
